package com.ticket.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ticket.common.annotation.Excel;
import com.ticket.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import javax.validation.constraints.Size;

/**
 * 场馆对象 yanchu_hall
 * 
 * @author ruoyi
 * @date 2023-09-26
 */
@ApiModel(description = "剧院对象")
public class YanchuHall extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 场馆编号 */
    private Long id;

    /** 剧院编号 */
    @Excel(name = "部门编号")
    private Long deptId;

    /** 场馆名称 */
    @Excel(name = "场馆名称")
    @Size(min = 1, max = 20, message = "场馆名称长度不能超过20个字符")
    @ApiModelProperty(value = "剧场名称")
    private String hallName;

    /** 场馆类别 */
    @Excel(name = "场馆类别")
    private String hallCategory;

    /** 总可用座位数，用于判断影厅是否做满，默认180 */
    @Excel(name = "总可用座位数，用于判断影厅是否做满，默认180")
    private Integer seatNums;
    @Excel(name = "地址")
    @ApiModelProperty(value = "地址")
    private String address;
    @ApiModelProperty(value = "剧院名称")
    @Transient
    private String deptName;
    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
    public void setHallName(String hallName) 
    {
        this.hallName = hallName;
    }

    public String getHallName() 
    {
        return hallName;
    }
    public void setHallCategory(String hallCategory) 
    {
        this.hallCategory = hallCategory;
    }

    public String getHallCategory() 
    {
        return hallCategory;
    }
    public void setSeatNums(Integer seatNums) 
    {
        this.seatNums = seatNums;
    }

    public Integer getSeatNums() 
    {
        return seatNums;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("hallName", getHallName())
            .append("hallCategory", getHallCategory())
            .append("seatNums", getSeatNums())
            .toString();
    }
}
